Testing Re nements by Re ning Tests
نویسنده
چکیده
One of the potential bene ts of formal methods is that they o er the possibility of reducing the costs of testing. A speci cation acts as both the benchmark against which any implementation is tested, and also as the means by which tests are generated. There has therefore been interest in developing test generation techniques from formal speci cations, and a number of di erent methods have been derived for state based languages such as Z, B and VDM. However, in addition to deriving tests from a formal speci cation, we might wish to re ne the speci cation further before its implementation. The purpose of this paper is to explore the relationship between testing and re nement. As our model for test generation we use a DNF partition analysis for operations written in Z, which produces a number of disjoint test cases for each operation. In this paper we discuss how the partition analysis of an operation alters upon re nement, and we develop techniques that allow us to re ne abstract tests in order to generate test cases for a re nement. To do so we use (and extend existing) methods for calculating the weakest data re nement of a speci cation.
منابع مشابه
Higher Order Functional Logic Programming A Systematic Development
We develop an e ective model for higher order functional logic programming by re ning higher order narrowing calculi The re nements reduce the high degree of non determinism in narrowing calculi utilizing properties of functional logic programs These include convergent and left linear rewrite rules All re nements can be combined to a narrowing strategy which generalizes call by need as in funct...
متن کاملTesting Re nements by Re ning
One of the potential beneets of formal methods is that they ooer the possibility of reducing the costs of testing. A speciication acts as both the benchmark against which any implementation is tested, and also as the means by which tests are generated. There has therefore been interest in developing test generation techniques from formal spec-iications, and a number of diierent methods have bee...
متن کاملCompositional Re nement of Interactive Systems
We describe systems and their components by functional speci cation techniques We de ne notions of interface and interaction re nement for interactive systems and their components These notions of re nement allow one to change both the syntactic the number of channels and sorts of messages at the channels and the semantic interface causality ow between messages and interaction granularity of an...
متن کاملAn Approach to Object-Orientation in Action Systems
We extend the action system formalism with a notion of objects that can be active and distributed. With this extension we can model class-based systems as action systems. Moreover, as the introduced constructs can be translated into ordinary action systems, we can use the theory developed for action systems, especially the re nement calculus, even for class-based systems. We show how inheritanc...
متن کاملA Multistrategy Learning Scheme for Agent Knowledge Acquisition
The problem of designing and re ning task-level strategies in an embedded multiagent setting is an important unsolved question. To address this problem, we have developed a multistrategy system that combines two learning methods: operationalization of high-level advice provided by a human and incremental re nement by a genetic algorithm. The rst method generates seed rules for ner-grained re ne...
متن کامل